class ResourcesController < ApplicationController
	layout "news"
	def index
		@resource = Resource.first
		if @resource
			redirect_to :action => :show, :id => @resource.id
		else
			redirect_to "/"
		end
	end

	def show 
		@resource = Resource.find_by_id(params[:id])
	end
end
